package com.github.chirspan.xaas.rbac.service.impl;

import com.github.chirspan.xaas.mybatis.service.impl.BaseServiceImpl;
import com.github.chirspan.xaas.rbac.dao.RbacRoleDao;
import com.github.chirspan.xaas.rbac.model.RbacRole;
import com.github.chirspan.xaas.rbac.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ************************
 * <p></p>
 * *************************
 *
 * @author chenpan
 * @date 2021/1/19 14:30
 */
@Service
public class RoleServiceImpl extends BaseServiceImpl<RbacRoleDao, RbacRole> implements IRoleService {

    @Autowired
    private RbacRoleDao roleDao;

    @Override
    public List<RbacRole> findUserRole(String userId) {
        return roleDao.selectUserRole(userId);
    }
}
